package cn.bonoon.controllers.parsers;

import javax.servlet.http.HttpServletRequest;

import cn.bonoon.kernel.events.PanelEvent;
import cn.bonoon.kernel.security.LogonUser;
import cn.bonoon.kernel.web.controllers.PanelParser;

public class ManagerPanelParser implements PanelParser{

	@Override
	public PanelEvent parse(String mid, HttpServletRequest request, LogonUser user) throws Exception {
		if(!user.isAdmin()) throw new Exception("非系统管理人员！");
		return null;
	}

}
